<template>
	<view class="content">
		<navigationCustom :config="config" @customConduct="customConduct" />
		<view class="zonge">
			<text class="font24">提成总额（元）</text><br>
			<text class="font48 fontw">125</text>
		</view>
		<view class="tabs">
			<view class="item" v-for="(item,index) in tabsList" :key="index" @click="dian(item.name,index)">
				<view class="icon">
					<image :src="item.icon" mode="aspectFit"></image>
				</view>
				<view class="title font24">
					{{item.name}}
				</view>
			</view>
		</view>
		<view class="titles font24 fontw">
			{{listTitle}}
		</view>
		<view class="list">
			<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="scrolltolower">
				<view class="item" v-for="(item,index) in list" :key="index">
					<view class="name">
						<view class="title font18">
							客户名称
						</view>
						<view class="des font24">
							{{item.name}}
						</view>
					</view>
					<view class="name">
						<view class="title font18">
							消费金额
						</view>
						<view class="des font24">
							{{item.money}}
						</view>
					</view>
					<view class="name">
						<view class="title font18">
							消费次数
						</view>
						<view class="des font24">
							{{item.num}}
						</view>
					</view>
					<view class="name">
						<view class="title font18">
							提成金额
						</view>
						<view class="des font24" style="color: #FF4E00;">
							{{item.c_money}}
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	import navigationCustom from "@/components/struggler-navigationCustom/navigation-custom"
	export default {
		data() {
			return {
				config: {
					title: "提成汇总", //title
					bgcolor: "#c1a379", //背景颜色
					// fontcolor:"red", //文字颜色，默认白色
					type: 4, //type 1，3胶囊 2，4无胶囊模式
					transparent: true, //是否背景透明 默认白色
					linear: false, //是为开启下滑渐变
					share: false, //是否将主页按钮显示为分享按钮
					menuIcon: "/static/images/back_.png", // 当type为3或者4的时候左边的icon文件位置，注意位置与当前页面不一样
					// menuText:"返回", 当type为3或4的时候icon右边的文字
				},
				tabsList: [{
					name: '保养提成',





					icon: '../../../static/images/technician/maintain.png'
				}, {
					name: '会员提成',
					icon: '../../../static/images/technician/vip.png'
				}, {
					name: '充值提成',
					icon: '../../../static/images/technician/recharge.png'





					icon: '/technicianadd/static/images/maintain.png'
				}, {
					name: '会员提成',
					icon: '/technicianadd/static/images/vip.png'
				}, {
					name: '充值提成',
					icon: '/technicianadd/static/images/recharge.png'





				}],
				listTitle: '保养提成',
				listIndex: 0,
				scrollTop: 0,
				list: [{
					name: '张小乔',
					money: '128',
					num: '6',
					c_money: '1000'
				}, {
					name: '张小乔',
					money: '128',
					num: '6',
					c_money: '1000'
				}, {
					name: '张小乔',
					money: '128',
					num: '6',
					c_money: '1000'
				}, {
					name: '张小乔',
					money: '128',
					num: '6',
					c_money: '1000'
				}, {
					name: '张小乔',
					money: '128',
					num: '6',
					c_money: '1000'
				}]
			};
		},
		components: {
			navigationCustom
		},
		methods: {
			customConduct(e) {
				uni.navigateBack()
			},
			dian(title, index) {
				this.listTitle = title
				this.listIndex = index
			},
			scrolltolower() {}
		}
	}
</script>

<style lang="scss">
	.content {
		background: url('');
		background-repeat: no-repeat;
		background-size: 100% 442rpx;
		height: 100vh;

		.zonge {
			color: #fff;
			position: absolute;
			top: 244rpx;
			left: 29rpx;
		}

		.tabs {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 38rpx;
			margin-top: 250rpx;

			.item {
				width: 216rpx;
				height: 216rpx;
				background: #FFFFFF;
				border-radius: 21rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;

				.icon {
					width: 82rpx;
					height: 82rpx;
					margin-bottom: 24rpx;

					image {
						width: 82rpx;
						height: 82rpx;
					}
				}

				.title {}
			}
		}

		.titles {
			padding-left: 39rpx;
			margin-top: 42rpx;
			margin-bottom: 18rpx;
		}

		.list {
			padding: 0 40rpx;

			.scroll-Y {
				height: calc(100vh - 800rpx);

				.item {
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-bottom: 13rpx;
					padding: 32rpx 70rpx 32rpx 65rpx;
					background-color: #fff;
					border-radius: 21rpx;

					.name {
						.title {
							margin-bottom: 19rpx;
						}

						.des {
							text-align: center;
						}
					}
				}
			}
		}
	}
</style>